home *** CD-ROM | disk | FTP | other *** search
/ Selling To the Government / Selling to the Government.iso / aladdin / ualaddin.cdp < prev   
Text File  |  1993-08-28  |  2KB  |  45 lines

  1. ; Installation Script for Aladdin
  2. ;
  3. ; Step 0 Tell the user what we are doing....
  4. ;
  5. Ask_Message AbortYN 0 '~m(1,1,1,1)~w(35)~hCDPMenu is about to Upgrade Aladdin, the communcations program for GEnie. If you would like to abort the installation Please select No Now.~n~n~kContinue Upgrading?~n~k~i(1)~e &Yes ~e  ~d(2)~e  &No ~e'
  6. If '@Num(AbortYN) = 2' then Abortexit
  7. ;
  8. ; Step 1 Get the target directory for the installation
  9. ;
  10. Ask_Value Target 122 C:\Aladdin '~m(1,1,1,1)~hInstallation Directory~nWhat directory should CDPMenu use to Upgrade Aladdin?~nHit enter to accept the default.~n~n~k~I(1)Directory: ~e               ~e'
  11. ;
  12. ; Step 2 Check the directry and if not present create it.
  13. ;
  14. Define_Var Target @AddBacks(Target)
  15. If @IsDir(Target) then DirCreated
  16. Ask_message CopyProg 0 '~m(1,1,1,1)~w(45)~hRequire Directory not Found~nCDPMenu is unable to locate the directory, please either Install Aladdin or specify the directory containing the old version of Aladdin~n~n~k~I(1)~eO&k~e'
  17. goto ExitFatal
  18. ;
  19. :DirCreated
  20. ;
  21. ; Step 3 Define a logical for target called target to copy the files to
  22. ;
  23. Define_log Target target
  24. ;
  25. ; Step 4 Copy all the Data files from the CDROM directory to the target directory.
  26. ;
  27. Copy  Aladdin:alad.exe Target:*.*
  28. Copy  Aladdin:aladdin.exe Target:*.*
  29. Copy  Aladdin:aladdin.hlp Target:*.*
  30. Copy  Aladdin:genie.lst Target:*.*
  31. Copy  Aladdin:AladCvt.exe Target:*.*
  32. ;
  33. Ask_Message CopyProg 0 '~m(1,1,1,1)~w(45)~hUpgrade Complete~nAladdin Ready, Review the documentation, Change to the Aladdin Directory and type Aladdin to start.~n~n~k~I(1)~eO&k~e'
  34. :NormalExit
  35. Notice 'Upgrade Compete'
  36. Exit
  37. ;
  38. :ExitFatal
  39. Notice 'Upgrade Aborted'
  40. FatalExit
  41. ;
  42. :AbortExit
  43. Notice 'Upgrade Abort by user Request'
  44. Exit
  45.